<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href='<?php echo base_url()?>'>
<link rel="stylesheet" type="text/css" href="public/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="public/admin/css/admin.css"/>
<script src="public/common/js/jquery.js"></script>
<script>
$(function(){
	$('.table tr').hover(function(){
		$(this).children('td').css('background','#ccffcc');
	},function(){
		$(this).children('td').css('background','white');
	});	
});
</script>
</head>
<body>
	<div class="body">
    	<?php echo $this->position->get_position();?>
    	<div class="body_center">
            <table class="table" style="margin-bottom:0px;">
            	<tr><th>模型ID</th><th>模型名称</th><th>数据表</th></tr>
            	<?php if($model):?>
	            	<?php foreach($model->result() as $value):?>
	            	<tr><td class='center'><?php echo $value->model_id?></td><td class='center'><?php echo $value->model_name?></td><td class='center'><?php echo $value->model_table_name?></td></tr>
	            	<?php endforeach;?>
	            <?php else:?>
	            	<tr><td colspan=3 class='center'>没有数据</td></tr>
            	<?php endif; ?>
            	 	
            </table>
        </div>
    </div>
</body>
</html>